home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_01_05 / 1n05046a < prev    next >
Text File  |  1990-09-04  |  374b  |  25 lines

  1.  
  2. int  x;        /* file scope, external linkage */
  3. static int y;     /* file scope
  4.  
  5. int f1();         /* file scope, external linkage */
  6. static void f2(); /* file scope */
  7.  
  8. int f1() 
  9.     {
  10.     int i, res = 0;    /* local scope */
  11.      
  12.     for (i = 1; i <= 10; ++i)
  13.         res += i;
  14.  
  15.     return res;
  16.     }
  17.  
  18. static void f2() 
  19.     {
  20.     goto comehere;
  21.  
  22.     comehere:        /* function scope */
  23.     }
  24.  
  25.